home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / listings / v_02_07 / 2n07012a < prev    next >
Text File  |  1991-06-02  |  556b  |  27 lines

  1. #ifndef TIMERS_H
  2. #define TIMERS_H
  3.  
  4. typedef unsigned long   ULONG;
  5.  
  6. typedef void (*TIMER_FIRE)(struct TIMER *);
  7.  
  8. typedef struct TIMER
  9.     {
  10.     struct TIMER    *Next;
  11.     int         EventId;
  12.     ULONG       Interval;
  13.     ULONG       ThisTime;
  14.     ULONG       LastTime;
  15.     TIMER_FIRE  Fire;
  16.     }   TIMER;
  17.  
  18. void    InitTimerPackage(HANDLE Instance, TIMER_FIRE Func);
  19.  
  20. TIMER   *TimerCreate(int EventId);
  21. void    TimerDelete(TIMER *Timer);
  22.  
  23. int     TimerStart(TIMER *Timer, ULONG Interval);
  24. void    TimerStop(TIMER *Timer);
  25.  
  26. #endif
  27.